{# 继承 layout 模板 #}
{% extends '../layout.njk' %}

{# 标题 #}
{% block title %}
部门列表
{% endblock%}

{# CSS #}
{% block cssLinks %}
{{ super() }}
{% endblock %}

{# 页面内容 #}
{% block content %}
<h3 class="title">部门列表</h3>
<div class="container">
    {% for d in depts %}
    <div>
        <span>{{ d.id }}</span>
        <span>{{ d.name }}</span>
    </div>
    {% else %}
    <div>暂无数据</div>
    {% endfor %}
</div>
{% endblock %}